/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package view.GUI.sidepanels;

import javax.swing.JLabel;
import model.graphic.objects.GNode;
import model.graphic.objects.Graphical;
import view.GUI.LabelReader;

/**
 *
 * @author Ben
 */
public class PropertiesStateGNode implements PropertiesState{

    public Object[][] getTableMatrix(Graphical g) {
        GNode gn = (GNode)g;
        Object[][] data = {
            {LabelReader.getInstance().getString("Name"), new JLabel(gn.getName())},
            {LabelReader.getInstance().getString("Visible"),gn.isVisible()},
            {LabelReader.getInstance().getString("Type"), gn.getType()},
            {LabelReader.getInstance().getString("BaseColor"), gn.getBaseColor()},
          //  {LabelReader.getInstance().getString("BackColor"), gn.getBackColor()},
            {LabelReader.getInstance().getString("HighLightColor"), gn.getHighlightColor()},
            {LabelReader.getInstance().getString("Location"), gn.getGraphLocation()},
            {LabelReader.getInstance().getString("StoreValue"), gn.getValue()}};
        return data;
    }

}
